package com.glb.gilibuy.service;

import com.glb.gilibuy.entity.UserOrderItem;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

/**
 * @Description:
 * @Author: Yingtian qian
 * @Date: 2021/8/6 9:13
 */

public interface OrderItemService {

    UserOrderItem selectItemByItemId(String itemId);

    List<UserOrderItem> selectItemsByOrderId(String orderId);

    /**
     * @Description: 添加订单项信息（内部使用）
     * @param:
     * @return:
     */
    Map<String, Object> addOrderItem(String orderId, String productId, BigDecimal orderItemPrice, Integer orderItemAmount);

    Map<String, Object> createQrCode(String orderId);
}
